package com.yuchting.dinneronline.share;

public final class ShareField {
	
	private static String fsm_admin = "RenLi tzz";
	
	//BEIJING time zone
	public final static long TIME_ZONE = 8;
	
	private ShareField(){}
	
	public static boolean isAdmin(String _name){
		return fsm_admin.toLowerCase().indexOf(_name) != -1;
	}
	
	public static boolean isLeagalName(String _name){
		
		if(_name == null || _name.isEmpty()){
			return false;
		}
		
//		for(int i = 0;i < _name.length();i++){
//			int a = (int)_name.charAt(i);
//			if((a >= 'a' && a <= 'z') || (a >= 'A' && a <= 'Z') || a == '_'){
//				return false;
//			}
//		}
		
		return true;
	}
	
	public static void main(String[] arg){
		if(isLeagalName("田智之")){
			System.out.println("OK");
		}
	}
}
